package com.example.yan_music.bean;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

public class Song extends LitePalSupport implements Serializable {

    private static final long serialVersionUID=1L;

    private String singer; //歌手
    private long duration; //总时长
    private String songName; //歌曲名字
    private String url;  //歌曲url
    private long currentTime; //歌曲播放时长位置
    private int position;//在音乐列表的位置
    private String imgUrl; //歌曲照片
    private boolean isOnline; //是否为网络歌曲

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getSongName() {
        return songName;
    }

    public void setSongName(String songName) {
        this.songName = songName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(long currentTime) {
        this.currentTime = currentTime;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean online) {
        isOnline = online;
    }

    @Override
    public String toString() {
        return "Song{" +
                "singer='" + singer + '\'' +
                ", duration=" + duration +
                ", songName='" + songName + '\'' +
                ", url='" + url + '\'' +
                ", currentTime=" + currentTime +
                ", position=" + position +
                ", imgUrl='" + imgUrl + '\'' +
                ", isOnline=" + isOnline +
                '}';
    }
}
